Skip to content

[OpenVINO] Windows Support#18678

Open
suryasidd wants to merge 6 commits intopytorch:mainfrom
suryasidd:ov_windows_support
Open

[OpenVINO] Windows Support#18678
suryasidd wants to merge 6 commits intopytorch:mainfrom
suryasidd:ov_windows_support

Conversation

@suryasidd
Copy link
Copy Markdown
Collaborator

Summary

This PR enables windows support for OpenVINO backend in executorch.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Apr 2, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18678

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 3 Unrelated Failures

As of commit b134db8 with merge base 3d2c853 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copilot AI review requested due to automatic review settings April 2, 2026 20:55
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables Windows support for the OpenVINO backend by adding Windows-specific dynamic library discovery/loading paths and updating build/docs accordingly.

Changes:

  • Add Windows OpenVINO runtime auto-discovery in Python bindings (DLL path + DLL directory handling).
  • Add Windows dynamic loading support in the C++ OpenVINO runtime (LoadLibrary/GetProcAddress + FreeLibrary).
  • Update OpenVINO backend build flags for MSVC and extend README instructions for Windows.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
extension/pybindings/portable_lib.py Detect openvino_c.dll on Windows and set OPENVINO_LIB_PATH / DLL search directory.
backends/openvino/runtime/OpenvinoBackend.cpp Use LoadLibrary/GetProcAddress on Windows; keep dlopen/dlsym on non-Windows.
backends/openvino/runtime/OpenvinoApi.h Add Windows header include and close library handles via FreeLibrary on Windows.
backends/openvino/README.md Document Windows quick start, env var setup, and build steps.
backends/openvino/CMakeLists.txt Use MSVC-compatible RTTI/exception flags (/GR, /EHsc) on Windows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings April 6, 2026 17:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```
2. **Clone ExecuTorch Repository from GitHub**
- On Windows, enable symlinks before cloning. Refer to [Building from Source](https://docs.pytorch.org/executorch/main/using-executorch-building-from-source.html#environment-setup) for more details.
- Clone Executorch repository by executing the command below.
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo/inconsistent product name: this should say “ExecuTorch repository” (consistent with the rest of the doc) rather than “Executorch repository”.

Suggested change
- Clone Executorch repository by executing the command below.
- Clone ExecuTorch repository by executing the command below.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants